package horse;

import java.util.ArrayList;

public abstract class Horse 
{
	protected int MaxStep;
	protected int step;
	protected ArrayList<Area> area = new ArrayList<Area>();
	protected Ways ways = new Ways();
	
	static protected int moves[][] = {{-1, -2}, {-2, -1}, {-2,  1}, { 1, -2},
									{-1,  2}, { 2, -1}, { 1,  2}, { 2,  1} }; 
	
	public Horse( int size_x, int size_y )
	{
		area.add(new Area(size_x, size_y));
		MaxStep = size_x + size_y - 1;
	}
	
	public void ViewShotWay()
	{
		Ways ways = this.ways.FindShotWay();
		
		if (ways.size()!=0)
		{
			System.out.println("Steps :"+(ways.getSteps(0))+"\n Area");
			ways.getArea(0).view();
		}
	}
}
